﻿using Easy.Shared.Argument;

namespace Easy.Cloud.Communication.Sms.Core
{
    using System.Collections.Generic;

    /// <summary>
    /// EasyCaching options.
    /// </summary>
    public class SmsOptions
    {
        /// <summary>
        /// Initializes a new instance of the <see cref="T:EasyCaching.Core.EasyCachingOptions"/> class.
        /// </summary>
        public SmsOptions()
        {
            Extensions = new List<ISmsOptionsExtension>();
        }

        /// <summary>
        /// Gets the extensions.
        /// </summary>
        /// <value>The extensions.</value>
        internal IList<ISmsOptionsExtension> Extensions { get; }

        /// <summary>
        /// Registers the extension.
        /// </summary>
        /// <param name="extension">Extension.</param>
        public void RegisterExtension(ISmsOptionsExtension extension)
        {
            ArgumentCheck.NotNull(extension, nameof(extension));

            Extensions.Add(extension);
        }
    }
}
